/*
 * @Author: zehao.chen
 * @Date: 2022-08-17 17:23:54
 * @LastEditors: zehao.chen
 * @LastEditTime: 2022-08-30 15:52:39
 * @FilePath: /meeting-admin/src/api/meetingDecca.js
 * @Description: 
 * 
 */
import http from '@/utils/request'



/**
 * @description: 台卡列表-分页
 * @return {*}
 */
export const meetingDecca = (pageNum, pageSize, data) => {
  return http.post(`/pc/meetingDecca/list?pageNum=${pageNum}&pageSize=${pageSize}`, data)
}

/**
 * @description: 台卡列表-删除
 * @return {*}
 */
export const deccaDelete = (ids) => {
  return http.post(`/pc/meetingDecca/delete?ids=${ids}`)
}

/**
 * @description: 台卡列表-新建
 * @return {*}
 */
export const createDecca = (data) => {
  return http({
    method: 'POST',
    url: `/pc/meetingDecca/createDecca`,
    params: data
  })
}


/**
 * @description: 台卡下载
 * @return {*}
 */
export const download = (id) => {
  return http({
    method: 'POST',
    url: `/pc/meetingDecca/download?id=${id}`,
  })
}


/**
 * @description: 台卡模板下载
 * @return {*}
 */
export const downloadTemplate = () => {
  return http({
    method: 'POST',
    url: `/pc/meetingDecca/formwork`,
  })
}